package com.fang.gulimall.admin.domain.system.post.db;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fang.gulimall.admin.common.core.base.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @ClassName SysPostEntity
 * @Description TODO
 * @Author fangge
 * @Date 2024/6/13 12:55
 */
@Getter
@Setter
@TableName("sys_post")
@Schema(name = "SysPostEntity对象", description = "岗位信息表")
public class SysPostEntity extends BaseEntity<SysPostEntity> {

    private static final long serialVersionUID = 1L;

    @Schema(name="岗位ID")
    @TableId(value = "post_id", type = IdType.AUTO)
    private Long postId;

    @Schema(name="岗位编码")
    @TableField("post_code")
    private String postCode;

    @Schema(name="岗位名称")
    @TableField("post_name")
    private String postName;

    @Schema(name="显示顺序")
    @TableField("post_sort")
    private Integer postSort;

    @Schema(name="状态（1正常 0停用）")
    @TableField("`status`")
    private Integer status;

    @Schema(name="备注")
    @TableField("remark")
    private String remark;


    @Override
    public Serializable pkVal() {
        return this.postId;
    }

}

